﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IServices;
using Services;

namespace Business
{
    public class CommonSystem
    {
        #region 成员属性

        private static CommonSystem m_Instance;
        /// <summary>
        /// 工作流业务实例
        /// </summary>
        public static CommonSystem Instance
        {
            get
            {
                if (m_Instance == null) m_Instance = new CommonSystem();
                return m_Instance;
            }
        }

        private ICommonService m_Service;
        /// <summary>
        /// 工作流服务
        /// </summary>
        public ICommonService Service
        {
            get
            {
                if (m_Service == null)
                {
                    m_Service = ServicesFactory.Instance.GetService<ICommonService>();
                }
                return m_Service;
            }
        }

        #endregion




    }
}
